<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>Laravel Cashier | Laravel 5.2 中文文档
</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="author" content="Taylor Otwell">
	<meta name="description" content="Laravel Cashier,简介,Stripe 配置,Braintree 配置,订购,创建订购,确认订购状态,改变方案,订购数量,订购税金,取消订购,恢复订购,处理 Stripe Webhooks,订购失败,其它 Webhooks,处理 Braintree Webhooks,订购失败,其...
">
	<meta name="keywords" content="laravel,laravel中国,laravel中文,laravel框架中文,laravel文档,laravel框架中国,laravel中文文档">
	<meta name="viewport" content="width=device-width, initial-scale=1">
			<link rel="canonical" href="../5.4/billing.html" />
		<!--[if lte IE 9]>
		<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	<link rel="stylesheet" href="../../build/assets/css/laravel-3d54d47ea3.css">
	<link rel="apple-touch-icon" href="../../favicon.png.jpeg">
</head>
<body class="docs language-php">

	<span class="overlay"></span>

	<nav class="main">
		<a href="../../index.html" class="brand nav-block">
			<svg version="1.1"
	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
	 x="0px" y="0px" width="84.1px" height="57.6px" viewBox="0 0 84.1 57.6" enable-background="new 0 0 84.1 57.6"
	 xml:space="preserve">
<defs>
</defs>
<path fill="#FB503B" d="M83.8,26.9c-0.6-0.6-8.3-10.3-9.6-11.9c-1.4-1.6-2-1.3-2.9-1.2s-10.6,1.8-11.7,1.9c-1.1,0.2-1.8,0.6-1.1,1.6
	c0.6,0.9,7,9.9,8.4,12l-25.5,6.1L21.2,1.5c-0.8-1.2-1-1.6-2.8-1.5C16.6,0.1,2.5,1.3,1.5,1.3c-1,0.1-2.1,0.5-1.1,2.9
	c1,2.4,17,36.8,17.4,37.8c0.4,1,1.6,2.6,4.3,2c2.8-0.7,12.4-3.2,17.7-4.6c2.8,5,8.4,15.2,9.5,16.7c1.4,2,2.4,1.6,4.5,1
	c1.7-0.5,26.2-9.3,27.3-9.8c1.1-0.5,1.8-0.8,1-1.9c-0.6-0.8-7-9.5-10.4-14c2.3-0.6,10.6-2.8,11.5-3.1C84.2,28,84.4,27.5,83.8,26.9z
	 M37.5,36.4c-0.3,0.1-14.6,3.5-15.3,3.7c-0.8,0.2-0.8,0.1-0.8-0.2C21.2,39.6,4.4,4.8,4.1,4.4c-0.2-0.4-0.2-0.8,0-0.8
	c0.2,0,13.5-1.2,13.9-1.2c0.5,0,0.4,0.1,0.6,0.4c0,0,18.7,32.3,19,32.8C38,36.1,37.8,36.3,37.5,36.4z M77.7,43.9
	c0.2,0.4,0.5,0.6-0.3,0.8c-0.7,0.3-24.1,8.2-24.6,8.4c-0.5,0.2-0.8,0.3-1.4-0.6s-8.2-14-8.2-14L68.1,32c0.6-0.2,0.8-0.3,1.2,0.3
	C69.7,33,77.5,43.6,77.7,43.9z M79.3,26.3c-0.6,0.1-9.7,2.4-9.7,2.4l-7.5-10.2c-0.2-0.3-0.4-0.6,0.1-0.7c0.5-0.1,9-1.6,9.4-1.7
	c0.4-0.1,0.7-0.2,1.2,0.5c0.5,0.6,6.9,8.8,7.2,9.1C80.3,26,79.9,26.2,79.3,26.3z"/>
</svg>

			<span>Laravel</span>
		</a>

        <div class="search nav-block">
            <svg version="1.1"
	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
	 x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
<defs>
</defs>
<g>
	<g>
		<path fill="#A1A1A1" d="M5.8,11.7c-1.6,0-3-0.6-4.1-1.7S0,7.4,0,5.8s0.6-3,1.7-4.1C2.8,0.6,4.3,0,5.8,0s3,0.6,4.1,1.7
			c2.3,2.3,2.3,6,0,8.3C8.9,11.1,7.4,11.7,5.8,11.7z M5.8,1C4.5,1,3.3,1.5,2.4,2.4C1.5,3.3,1,4.5,1,5.8s0.5,2.5,1.4,3.4
			c0.9,0.9,2.1,1.4,3.4,1.4s2.5-0.5,3.4-1.4c1.9-1.9,1.9-5,0-6.9C8.4,1.5,7.1,1,5.8,1z"/>
	</g>
	<g>
		<path fill="#A1A1A1" d="M15.5,16c-0.1,0-0.3,0-0.3-0.1L9.3,10c-0.2-0.2-0.2-0.5,0-0.7s0.5-0.2,0.7,0l5.9,5.9
			c0.2,0.2,0.2,0.5,0,0.7C15.8,16,15.6,16,15.5,16z"/>
	</g>
</g>
</svg>

            <input placeholder="搜索文档" type="text" v-model="search" id="search-input" v-on:blur="reset" />
        </div>

		<ul class="main-nav" v-if="! search">
			<li class="nav-docs"><a href="../5.4.html">文档</a></li>
<li ><a href="https://news.laravel-china.org/" class="no-pjax">Laravel 资讯</a></li>
<li class="dropdown"><a href="https://laravel-china.org/">Laravel China 社区</a></li>
<li class="nav-forge"><a href="https://laravel-china.org/categories/1">酷工作</a></li>
<li class="nav-docs"><a href="http://lumen.laravel-china.org">Lumen</a></li>
<li class="nav-forge"><a href="https://cs.laravel-china.org/">速查表</a></li>
<li class="nav-forge"><a href="https://laravel-china.org/laravel-tutorial/5.1/about">《Laravel 入门教程》</a></li>
		</ul>

        			<div class="switcher">
	<div class="dropdown">
		<button class="btn dropdown-toggle btn-inverted" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
			<!--<span class="faint">v</span> -->
			5.2
			<span class="caret"></span>
		</button>
		<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
							<li role="presentation">
					<a role="menuitem" tabindex="-1" href="../5.4/billing.html">5.4</a>
				</li>
							<li role="presentation">
					<a role="menuitem" tabindex="-1" href="../5.3/billing.html">5.3</a>
				</li>
							<li role="presentation">
					<a role="menuitem" tabindex="-1" href="billing.html">5.2</a>
				</li>
							<li role="presentation">
					<a role="menuitem" tabindex="-1" href="../5.1/billing.html">5.1</a>
				</li>
					</ul>
	</div>
</div>
		
        <div class="responsive-sidebar-nav">
			<a href="billing.html#" class="toggle-slide menu-link btn">&#9776;</a>
		</div>
	</nav>

	<nav id="slide-menu" class="slide-menu" role="navigation">

	<div class="brand">
		<a href="../../index.html">
			<img src="../../assets/img/laravel-logo-white.png" height="50">
		</a>
	</div>

	<ul class="slide-main-nav">
		<li><a href="../../index.html">Home</a></li>
		<li class="nav-docs"><a href="../5.4.html">文档</a></li>
<li ><a href="https://news.laravel-china.org/" class="no-pjax">Laravel 资讯</a></li>
<li class="dropdown"><a href="https://laravel-china.org/">Laravel China 社区</a></li>
<li class="nav-forge"><a href="https://laravel-china.org/categories/1">酷工作</a></li>
<li class="nav-docs"><a href="http://lumen.laravel-china.org">Lumen</a></li>
<li class="nav-forge"><a href="https://cs.laravel-china.org/">速查表</a></li>
<li class="nav-forge"><a href="https://laravel-china.org/laravel-tutorial/5.1/about">《Laravel 入门教程》</a></li>
	</ul>

	<div class="slide-docs-nav">
		<h2>Documentation</h2>
		<ul>
<li>前言
<ul>
<li><a href="about.html">翻译说明</a></li>
<li><a href="releases.html">发行说明</a></li>
<li><a href="upgrade.html">升级导引</a></li>
<li><a href="contributions.html">贡献导引</a></li>
<li><a href="../../api/5.2/index.html">API 文档</a></li>
</ul></li>
<li>安装与配置
<ul>
<li><a href="installation.html">安装</a></li>
<li><a href="configuration.html">配置</a></li>
<li><a href="homestead.html">Homestead</a></li>
<li><a href="valet.html">Valet</a></li>
</ul></li>
<li>教程
<ul>
<li><a href="quickstart.html">初级任务清单</a></li>
<li><a href="quickstart-intermediate.html">中级任务清单</a></li>
</ul></li>
<li>基本功能
<ul>
<li><a href="routing.html">路由</a></li>
<li><a href="middleware.html">中间件</a></li>
<li><a href="controllers.html">控制器</a></li>
<li><a href="requests.html">请求</a></li>
<li><a href="responses.html">响应</a></li>
<li><a href="views.html">视图</a></li>
<li><a href="blade.html">Blade 模板</a></li>
</ul></li>
<li>系统架构
<ul>
<li><a href="lifecycle.html">请求生命周期</a></li>
<li><a href="structure.html">应用程序架构</a></li>
<li><a href="providers.html">服务提供者</a></li>
<li><a href="container.html">服务容器</a></li>
<li><a href="contracts.html">Contracts</a></li>
<li><a href="facades.html">Facades</a></li>
</ul></li>
<li>系统服务
<ul>
<li><a href="authentication.html">用户认证</a></li>
<li><a href="authorization.html">用户授权</a></li>
<li><a href="artisan.html">Artisan 命令行</a></li>
<li><a href="billing.html">交易</a></li>
<li><a href="cache.html">缓存</a></li>
<li><a href="collections.html">集合</a></li>
<li><a href="elixir.html">Elixir</a></li>
<li><a href="encryption.html">加密与解密</a></li>
<li><a href="errors.html">错误与日志</a></li>
<li><a href="events.html">事件</a></li>
<li><a href="filesystem.html">文件系统与云存储</a></li>
<li><a href="hashing.html">哈希</a></li>
<li><a href="helpers.html">辅助函数</a></li>
<li><a href="localization.html">本地化</a></li>
<li><a href="mail.html">邮件</a></li>
<li><a href="packages.html">扩展包开发</a></li>
<li><a href="pagination.html">分页</a></li>
<li><a href="queues.html">队列</a></li>
<li><a href="redis.html">Redis</a></li>
<li><a href="session.html">Session</a></li>
<li><a href="envoy.html">Envoy</a></li>
<li><a href="scheduling.html">任务调度</a></li>
<li><a href="testing.html">测试</a></li>
<li><a href="validation.html">表单验证</a></li>
</ul></li>
<li>数据库
<ul>
<li><a href="database.html">数据库入门</a></li>
<li><a href="queries.html">查询构造器</a></li>
<li><a href="migrations.html">数据库迁移</a></li>
<li><a href="seeding.html">数据填充</a></li>
</ul></li>
<li>Eloquent ORM
<ul>
<li><a href="eloquent.html">入门</a></li>
<li><a href="eloquent-relationships.html">模型关联</a></li>
<li><a href="eloquent-collections.html">Eloquent 集合</a></li>
<li><a href="eloquent-mutators.html">修改器</a></li>
<li><a href="eloquent-serialization.html">序列化</a></li>
</ul></li>
</ul>
	</div>

</nav>

<div class="docs-wrapper container">

	<section class="sidebar">

            <div class="header">
              <a type="button" class="btn btn-primary btn-inverted btn-lg btn-block turnofflight"><i class="fa fa-lightbulb-o"></i> 夜间模式 </a>
              <br>
              <div class="versions text-center ">
                <a class="doc-btn btn-inverted " href="../5.4.html" title="Laravel 5.4 中文文档">C5.4</a>
                <a class="doc-btn btn-inverted " href="../5.3.html" title="Laravel 5.3 中文文档">C5.3</a>
                <a class="doc-btn btn-inverted " href="../5.1.html" title="Laravel 5.1 中文文档">C5.1</a>
              </div>
            </div>

            <a href="https://laravel-china.org/topics/3383" target="_blank" rel="nofollow" title="" style="display: block;margin-bottom: 23px;">
                <img src="https://dn-phphub.qbox.me/uploads/images/201612/10/1/k7wwMpJduq.jpg" style="width: 100%;border: 1px solid #d8d3d3;box-shadow: 0 0 30px #d4d4d4;-moz-box-shadow: 0 0 30px #ccc;-webkit-box-shadow: 0 0 30px #d4d4d4;margin-bottom: 30px;margin-top: 10px;border-radius: 4px;">
            </a>

		<ul>
<li>前言
<ul>
<li><a href="about.html">翻译说明</a></li>
<li><a href="releases.html">发行说明</a></li>
<li><a href="upgrade.html">升级导引</a></li>
<li><a href="contributions.html">贡献导引</a></li>
<li><a href="../../api/5.2/index.html">API 文档</a></li>
</ul></li>
<li>安装与配置
<ul>
<li><a href="installation.html">安装</a></li>
<li><a href="configuration.html">配置</a></li>
<li><a href="homestead.html">Homestead</a></li>
<li><a href="valet.html">Valet</a></li>
</ul></li>
<li>教程
<ul>
<li><a href="quickstart.html">初级任务清单</a></li>
<li><a href="quickstart-intermediate.html">中级任务清单</a></li>
</ul></li>
<li>基本功能
<ul>
<li><a href="routing.html">路由</a></li>
<li><a href="middleware.html">中间件</a></li>
<li><a href="controllers.html">控制器</a></li>
<li><a href="requests.html">请求</a></li>
<li><a href="responses.html">响应</a></li>
<li><a href="views.html">视图</a></li>
<li><a href="blade.html">Blade 模板</a></li>
</ul></li>
<li>系统架构
<ul>
<li><a href="lifecycle.html">请求生命周期</a></li>
<li><a href="structure.html">应用程序架构</a></li>
<li><a href="providers.html">服务提供者</a></li>
<li><a href="container.html">服务容器</a></li>
<li><a href="contracts.html">Contracts</a></li>
<li><a href="facades.html">Facades</a></li>
</ul></li>
<li>系统服务
<ul>
<li><a href="authentication.html">用户认证</a></li>
<li><a href="authorization.html">用户授权</a></li>
<li><a href="artisan.html">Artisan 命令行</a></li>
<li><a href="billing.html">交易</a></li>
<li><a href="cache.html">缓存</a></li>
<li><a href="collections.html">集合</a></li>
<li><a href="elixir.html">Elixir</a></li>
<li><a href="encryption.html">加密与解密</a></li>
<li><a href="errors.html">错误与日志</a></li>
<li><a href="events.html">事件</a></li>
<li><a href="filesystem.html">文件系统与云存储</a></li>
<li><a href="hashing.html">哈希</a></li>
<li><a href="helpers.html">辅助函数</a></li>
<li><a href="localization.html">本地化</a></li>
<li><a href="mail.html">邮件</a></li>
<li><a href="packages.html">扩展包开发</a></li>
<li><a href="pagination.html">分页</a></li>
<li><a href="queues.html">队列</a></li>
<li><a href="redis.html">Redis</a></li>
<li><a href="session.html">Session</a></li>
<li><a href="envoy.html">Envoy</a></li>
<li><a href="scheduling.html">任务调度</a></li>
<li><a href="testing.html">测试</a></li>
<li><a href="validation.html">表单验证</a></li>
</ul></li>
<li>数据库
<ul>
<li><a href="database.html">数据库入门</a></li>
<li><a href="queries.html">查询构造器</a></li>
<li><a href="migrations.html">数据库迁移</a></li>
<li><a href="seeding.html">数据填充</a></li>
</ul></li>
<li>Eloquent ORM
<ul>
<li><a href="eloquent.html">入门</a></li>
<li><a href="eloquent-relationships.html">模型关联</a></li>
<li><a href="eloquent-collections.html">Eloquent 集合</a></li>
<li><a href="eloquent-mutators.html">修改器</a></li>
<li><a href="eloquent-serialization.html">序列化</a></li>
</ul></li>
</ul>

		<hr>
            <ul>
              <li>社交账号
                <ul>
                  <li><a href="http://weibo.com/laravelnews">微博：「Laravel资讯」</a></li>
                  <li>
                    新手 QQ 群：483184286
                  </li>
                  <li>
                    <br>
                    订阅 Laravel 资讯
<img class="image-border popover-with-html" data-content="" src="https://dn-phphub.qbox.me/uploads/images/201609/19/1/pVYzokV0Od.jpg" style="width: 148px;height: 148px;border:1px solid #ccc;padding:2px;border-radius:3px;margin-top:5px;" data-original-title="" title="">
                  </li>

                </ul>
              </li>
            </ul>

	</section>

	

	<article>

		<div class="alert alert-warning" role="alert">
			一小时同步一次，更多信息请查阅 <a href="https://laravel-china.org/topics/2095">文档导读</a>。
			发现瑕疵？你也可以
				<a href="https://github.com/laravel-china/laravel-docs/edit/5.2/billing.md"><i class="fa fa-pencil-square-o"></i> 改进本文</a>
			。
		</div>

		<div class="main-content">
			<h1>Laravel Cashier</h1>
<ul>
<li><a href="billing.html#introduction">简介</a></li>
<li><a href="billing.html#stripe-configuration">Stripe 配置</a></li>
<li><a href="billing.html#braintree-configuration">Braintree 配置</a></li>
<li><a href="billing.html#subscriptions">订购</a>
<ul>
<li><a href="billing.html#creating-subscriptions">创建订购</a></li>
<li><a href="billing.html#checking-subscription-status">确认订购状态</a></li>
<li><a href="billing.html#changing-plans">改变方案</a></li>
<li><a href="billing.html#subscription-quantity">订购数量</a></li>
<li><a href="billing.html#subscription-taxes">订购税金</a></li>
<li><a href="billing.html#cancelling-subscriptions">取消订购</a></li>
<li><a href="billing.html#resuming-subscriptions">恢复订购</a></li>
</ul></li>
<li><a href="billing.html#handling-stripe-webhooks">处理 Stripe Webhooks</a>
<ul>
<li><a href="billing.html#handling-failed-subscriptions">订购失败</a></li>
<li><a href="billing.html#handling-other-webhooks">其它 Webhooks</a></li>
</ul></li>
<li><a href="billing.html#handling-braintree-webhooks">处理 Braintree Webhooks</a>
<ul>
<li><a href="billing.html#handling-braintree-failed-subscriptions">订购失败</a></li>
<li><a href="billing.html#handling-braintree-other-webhooks">其它 Webhooks</a></li>
</ul></li>
<li><a href="billing.html#single-charges">一次性收费</a></li>
<li><a href="billing.html#invoices">发票</a>
<ul>
<li><a href="billing.html#generating-invoice-pdfs">生成发票的 PDF</a></li>
</ul></li>
</ul>
<p><a name="introduction"></a></p>
<h2>简介</h2>
<p>Laravel Cashier 给 <a href="https://stripe.com">Stripe</a> 和 <a href="https://braintreepayments.com">Braintree's</a> 的订购交易服务提供了生动流畅的接口。它基本上处理了所有会让人恐惧的订购管理的相关逻辑。除了基本的订购管理外，Cashier 还可以处理优惠券，订购转换，管理订购「数量」、取消宽限期，甚至生成发票的 PDF 文件。</p>
<p><a name="stripe-configuration"></a></p>
<h2>Stripe 配置</h2>
<h4>Composer</h4>
<p>首先，将 Cashier 扩展包添加至 <code>composer.json</code> 文件并运行 <code>composer update</code> 命令：</p>
<pre><code>"laravel/cashier": "~6.0"</code></pre>
<blockquote>
<p>译者注：请使用 require 来安装扩展包，讨论请见 <a href="https://phphub.org/topics/1901">正确的 Composer 扩展包安装方法</a></p>
</blockquote>
<h4>服务提供者</h4>
<p>接着，在 <code>app</code> 配置文件中注册 <code>Laravel\Cashier\CashierServiceProvider</code> <a href="providers.html">服务提供者</a>。</p>
<h4>数据库迁移</h4>
<p>我们需要添加新字段到 <code>users</code> 用户表中，并且创建 <code>subscriptions</code> 表用来存放所有用户的订阅信息：</p>
<pre><code>Schema::table('users', function ($table) {
    $table-&gt;string('stripe_id')-&gt;nullable();
    $table-&gt;string('card_brand')-&gt;nullable();
    $table-&gt;string('card_last_four')-&gt;nullable();
    $table-&gt;timestamp('trial_ends_at')-&gt;nullable();
});

Schema::create('subscriptions', function ($table) {
    $table-&gt;increments('id');
    $table-&gt;integer('user_id');
    $table-&gt;string('name');
    $table-&gt;string('stripe_id');
    $table-&gt;string('stripe_plan');
    $table-&gt;integer('quantity');
    $table-&gt;timestamp('trial_ends_at')-&gt;nullable();
    $table-&gt;timestamp('ends_at')-&gt;nullable();
    $table-&gt;timestamps();
});</code></pre>
<p>在数据库迁移文件创建完毕后请运行 <code>migrate</code> Artisan 命令。</p>
<h4>模型设置</h4>
<p>接着，将 <code>Billable</code> trait 和适当的日期访问器添加至你的模型定义中：</p>
<pre><code>use Laravel\Cashier\Billable;

class User extends Authenticatable
{
    use Billable;
}</code></pre>
<h4>Stripe 密钥</h4>
<p>最后，在你的 <code>services.php</code> 配置文件中设置 Stripe 密钥：</p>
<pre><code>'stripe' =&gt; [
    'model'  =&gt; App\User::class,
    'secret' =&gt; env('STRIPE_SECRET'),
],</code></pre>
<p><a name="braintree-configuration"></a></p>
<h2>Braintree 配置</h2>
<h4>Braintree 警告</h4>
<p>对于大部分的操作，Stripe 和 Braintree 的功能基本上一样。两个服务都支持行用卡支付，不过 Braintree 支持 PayPal。Braintree 也缺少一些 Stripe 的功能，在你选择的时候可以参考一下：</p>
<div class="content-list">
<ul>
<li>Braintree 支持 PayPal，Stripe 不支持。</li>
<li>Braintree 不支持订阅的 <code>increment</code> 和 <code>decrement</code> 方法。这是 Braintree 的接口限制，不是 Cashier 的。</li>
<li>Braintree 不支持按照百分比的折扣。这是 Braintree 的接口限制，不是 Cashier 的。</li>
</ul>
</div>
<h4>Composer</h4>
<p>首先，将 Cashier 扩展包添加至 <code>composer.json</code> 文件并运行 <code>composer update</code> 命令：</p>
<pre><code>"laravel/cashier-braintree": "~1.0"</code></pre>
<h4>服务提供者</h4>
<p>接着，在 <code>app</code> 配置文件中注册 <code>Laravel\Cashier\CashierServiceProvider</code> <a href="providers.html">服务提供者</a>。</p>
<h4>计划积分优惠券</h4>
<p>在使用 Cashier 中使用 Braintree 之前，你需要在 Braintree 的控制台上定义一个 <code>plan-credit</code> 优惠计划。这个计划会用来合理分配从月度订阅升级到年度订阅的改变，或者年度订阅降级到月度订阅的改变。在 Braintree 的控制台中，你可以为这个计划任意设置一个值，Cashier 会在每一次变更优惠券的时候覆盖此值。</p>
<h4>数据库迁移</h4>
<p>我们需要添加新字段到 <code>users</code> 用户表中，并且创建 <code>subscriptions</code> 表用来存放所有用户的订阅信息：</p>
<pre><code>Schema::table('users', function ($table) {
    $table-&gt;string('braintree_id')-&gt;nullable();
    $table-&gt;string('paypal_email')-&gt;nullable();
    $table-&gt;string('card_brand')-&gt;nullable();
    $table-&gt;string('card_last_four')-&gt;nullable();
    $table-&gt;timestamp('trial_ends_at')-&gt;nullable();
});

Schema::create('subscriptions', function ($table) {
    $table-&gt;increments('id');
    $table-&gt;integer('user_id');
    $table-&gt;string('name');
    $table-&gt;string('braintree_id');
    $table-&gt;string('braintree_plan');
    $table-&gt;integer('quantity');
    $table-&gt;timestamp('trial_ends_at')-&gt;nullable();
    $table-&gt;timestamp('ends_at')-&gt;nullable();
    $table-&gt;timestamps();
});</code></pre>
<p>在数据库迁移文件创建完毕后请运行 <code>migrate</code> Artisan 命令。</p>
<h4>模型设置</h4>
<p>接着，将 <code>Billable</code> trait 和适当的日期访问器添加至你的模型定义中：</p>
<pre><code>use Laravel\Cashier\Billable;

class User extends Authenticatable
{
    use Billable;
}</code></pre>
<h4>秘钥设置</h4>
<p>在你的 <code>services.php</code> 配置文件中设置 Stripe 密钥：</p>
<pre><code>'braintree' =&gt; [
    'model'  =&gt; App\User::class,
    'environment' =&gt; env('BRAINTREE_ENV'),
    'merchant_id' =&gt; env('BRAINTREE_MERCHANT_ID'),
    'public_key' =&gt; env('BRAINTREE_PUBLIC_KEY'),
    'private_key' =&gt; env('BRAINTREE_PRIVATE_KEY'),
],</code></pre>
<p>然后你还需要增加这些 SDK 调用到你的 <code>AppServiceProvider</code> 服务提供者的 <code>boot</code> 方法内：</p>
<pre><code>\Braintree_Configuration::environment(env('BRAINTREE_ENV'));
\Braintree_Configuration::merchantId(env('BRAINTREE_MERCHANT_ID'));
\Braintree_Configuration::publicKey(env('BRAINTREE_PUBLIC_KEY'));
\Braintree_Configuration::privateKey(env('BRAINTREE_PRIVATE_KEY'));</code></pre>
<p><a name="subscriptions"></a></p>
<h2>订购</h2>
<p><a name="creating-subscriptions"></a></p>
<h3>创建订购</h3>
<p>要创建一个订购，首先要获取可交易的模型实例，这通常会是 <code>App\User</code> 的实例。一旦你获取了模型实例，你可以使用 <code>subscription</code> 方法来管理模型的订购：</p>
<pre><code>$user = User::find(1);

$user-&gt;newSubscription('main', 'monthly')-&gt;create($creditCardToken);</code></pre>
<p><code>newSubscription</code> 方法的第一个参数是订阅的名称，如果你的应用程序只提供一种订阅的话，可以考虑把这个方案命名为 <code>main</code> 或者 <code>primary</code>。第二个参数是用户订阅的 Stripe / Braintree 计划。这个值应该对应 Stripe 和 Braintree 的后台唯一标识符。</p>
<p><code>create</code> 方法会自动创建订阅并且更新客户 ID 和账单相关的信息。</p>
<h4>额外用户详细数据</h4>
<p>如果你想自定义额外的顾客详细数据，可以将数据数组作为 <code>create</code> 方法的第二个参数传入：</p>
<pre><code>$user-&gt;subscription('monthly')-&gt;create($creditCardToken, [
    'email' =&gt; $email, 'description' =&gt; '我们的第一个客户'
]);</code></pre>
<p>想知道更多 Stripe 支持的额外字段，请查看 Stripe 的 <a href="https://stripe.com/docs/api#create_customer">创建顾客文档</a>。</p>
<h4>优惠券</h4>
<p>如果你想在创建订购的时候使用优惠券，可以使用 <code>withCoupon</code> 方法：</p>
<pre><code>$user-&gt;subscription('monthly')
     -&gt;withCoupon('code')
     -&gt;create($creditCardToken);</code></pre>
<p><a name="checking-subscription-status"></a></p>
<h3>确认订购状态</h3>
<p>一旦用户在你的应用程序完成订购，你便可以使用多种方法来检查他们的订购状态。首先，当用户拥有有效订购时，<code>subscribed</code> 方法会返回 <code>true</code>，即使该订购目前在试用期间：</p>
<pre><code>if ($user-&gt;subscribed('main')) {
    //
}</code></pre>
<p><code>subscribed</code> 方法很适合用在 <a href="middleware.html">路由中间件</a>，让你可以通过用户的订购状态，过滤访问路由及控制器：</p>
<pre><code>public function handle($request, Closure $next)
{
    if ($request-&gt;user() &amp;&amp; ! $request-&gt;user()-&gt;subscribed('main')) {
        // This user is not a paying customer...
        return redirect('billing');
    }

    return $next($request);
}</code></pre>
<p>如果你想确认用户是否还在他们的试用期内，你可以使用 <code>onTrial</code> 方法。利用此方法可以在页面的顶部展示正在试用期内的提示：</p>
<pre><code>if ($user-&gt;subscription('main')-&gt;onTrial()) {
    //
}</code></pre>
<p><code>subscribedToPlan</code> 方法允许你使用 Stripe ID / Braintree 计划 ID 来确认用户是否订购某方案。在这个列子中，我们检查用户的 <code>main</code> 订阅是否有 <code>monthly</code>计划：</p>
<pre><code>if ($user-&gt;subscribedToPlan('monthly', 'main')) {
    //
}</code></pre>
<h4>取消订购状态</h4>
<p>若要确认用户是否曾经订购过，但现在已取消订购，你可以使用 <code>cancelled</code> 方法：</p>
<pre><code>if ($user-&gt;subscription('main')-&gt;cancelled()) {
    //
}</code></pre>
<p>你可能想确认用户是否已经取消订购，但是订购还在他们完全到期前的「宽限期」内。例如，如果用户在三月五号取消了订购，但是服务会到三月十号才过期。那么用户到三月十号前都是「宽限期」。注意，<code>subscribed</code> 方法在这个期间仍然会返回 <code>true</code>。</p>
<pre><code>if ($user-&gt;subscription('main')-&gt;onGracePeriod()) {
    //
}</code></pre>
<p><a name="changing-plans"></a></p>
<h3>改变方案</h3>
<p>当用户在你的应用程序订购之后，他们有时可能想更改自己的订购方案。使用 <code>swap</code> 方法可以把用户转换到新的订购方案。举个例子，我们可以简单的将用户切换至 <code>premium</code> 订购方案：</p>
<pre><code>$user = App\User::find(1);

$user-&gt;subscription('main')-&gt;swap('provider-plan-id');</code></pre>
<p>如果用户是在试用阶段的话，用户的试用计划会被继续保持。如果订阅有订购数量存在的话，订购数量也会被保持。</p>
<pre><code>$user-&gt;subscription('main')-&gt;swap('provider-plan-id');</code></pre>
<p>如果你想切换到一个订阅计划，但是跳过「试用」的话，可以使用 <code>skipTrial</code> 方法来实现：
$user-&gt;subscription('main')
-&gt;skipTrial()
-&gt;swap('provider-plan-id');</p>
<p><a name="subscription-quantity"></a></p>
<h3>订购数量</h3>
<blockquote>
<p><strong>注意：</strong> 订购数量只有 Stripe 支持。</p>
</blockquote>
<p>有时候订购行为会跟「数量」有关。例如，你的应用程序可能会依照帐号的用户人数，<strong>每人</strong> 每月收取 10 元。你可以使用 <code>incrementQuantity</code> 和 <code>decrementQuantity</code> 方法简单的调整订购数量：</p>
<pre><code>$user = User::find(1);

$user-&gt;subscription('main')-&gt;incrementQuantity();

// 增加 5 个订购数量...
$user-&gt;subscription('main')-&gt;incrementQuantity(5);

$user-&gt;subscription('main')-&gt;decrementQuantity();

// 减少 5 个订购数量...
$user-&gt;subscription('main')-&gt;decrementQuantity(5);</code></pre>
<p>另外，你也可以使用 <code>updateQuantity</code> 方法来设置指定的数量：</p>
<pre><code>$user-&gt;subscription('main')-&gt;updateQuantity(10);</code></pre>
<p>有关订购数量的更多数据，请参阅 <a href="https://stripe.com/docs/guides/subscriptions#setting-quantities">Stripe 文档</a>。</p>
<p><a name="subscription-taxes"></a></p>
<h3>订购税金</h3>
<p>在 Cashier 中，可以很容易的提供发送至 Stripe 的 <code>tax_percent</code> 值。要指定一个用户付费订购时的税金比例，请在你的交易模型中实现 <code>getTaxPercent</code> 方法，并返回一个介于 0 至 100 间，且不超过两位小数的数值。</p>
<pre><code>public function getTaxPercent() {
    return 20;
}</code></pre>
<p>这能让你基于个别模型去运用税率，可能对横跨多个国家的用户群非常有帮助。</p>
<p><a name="cancelling-subscriptions"></a></p>
<h3>取消订购</h3>
<p>要取消一个订购，只需要在用户的订购调用 <code>cancel</code> 方法：</p>
<pre><code>$user-&gt;subscription('main')-&gt;cancel();</code></pre>
<p>当订购被取消时，Cashier 会自动更新数据库的 <code>ends_at</code> 字段。这个字段会被用来判断 <code>subscribed</code> 方法什么时候该开始返回  <code>false</code>。例如，如果顾客在三月一号取消订购，但是服务可以使用到三月五号为止，那么 <code>subscribed</code> 方法在三月五号前都会传回 <code>true</code>。</p>
<p>你想确认用户是否已经取消他们的订购，但是还在他们的「宽限期」内，可以使用 <code>onGracePeriod</code> 方法：</p>
<pre><code>if ($user-&gt;subscription('main')-&gt;onGracePeriod()) {
    //
}</code></pre>
<p><a name="resuming-subscriptions"></a></p>
<h3>恢复订购</h3>
<p>如果用户已经取消了他们的订购，但你想恢复订购，可以使用 <code>resume</code> 方法。用户 <strong>必须</strong> 仍处在宽限期内：</p>
<pre><code>$user-&gt;subscription('main')-&gt;resume();</code></pre>
<p>如果客户取消订购后，且接着在服务完全过期前恢复订购，他们将不会在当下被扣款。他们的订购会被重新启动，而付款则会依照平常的周期。</p>
<p><a name="subscription-trials"></a></p>
<h2>订购试用</h2>
<p><a name="with-credit-card-up-front"></a></p>
<h3>预先绑定信用卡</h3>
<p>你可以使用 <code>trialDays</code> 为你的客户提供一定时间的试用期限方案：</p>
<pre><code>$user = User::find(1);

$user-&gt;newSubscription('main', 'monthly')
            -&gt;trialDays(10)
            -&gt;create($creditCardToken);</code></pre>
<p>此方法会更新数据库中的订阅记录的试用终止时间，同时会指示 Stripe / Braintree 在这个终止时间之前不做计费处理。</p>
<blockquote>
<p><strong>注意：</strong> 你应该在试用期快终止的时候通知你的用户，因为试用期一到，订阅服务将开始计费。</p>
</blockquote>
<p>你可以在用户实例或者用户的订阅实例上使用 <code>onTrial</code> 方法来判断当前用户是否正处于试用期内：</p>
<pre><code>if ($user-&gt;onTrial('main')) {
    //
}

if ($user-&gt;subscription('main')-&gt;onTrial()) {
    //
}</code></pre>
<p><a name="without-credit-card-up-front"></a></p>
<h3>不需要预先绑定信用卡</h3>
<p>如果你不要求用户在开始试用期的时候绑定信用卡，你可以直接更新用户表里的 <code>trial_ends_at</code> 字段。一般的操作是在注册用户的时候设置 <code>trial_ends_at</code> 试用期过期时间：</p>
<pre><code>$user = User::create([
    // Populate other user properties...
    'trial_ends_at' =&gt; Carbon::now()-&gt;addDays(10),
]);</code></pre>
<p>因为这种试用类型不需要绑定订阅，Cashier 称呼这种类型的试用为「通用试用（generic trial）」。如果 <code>trial_ends_at</code> 这个时间还没过期的话，<code>User</code> 实例上的 <code>onTrial</code> 会返回 <code>true</code>：</p>
<pre><code>if ($user-&gt;onTrial()) {
    // 用户是否还在试用期
}</code></pre>
<p>你可以使用 <code>onGenericTrial</code> 来判断某个用户是否还在试用期内，并且使用的是「通用试用」类型：</p>
<pre><code>if ($user-&gt;onGenericTrial()) {
    // 用户是否还在 「通用试用」类型试用期限内
}</code></pre>
<p>当用户准备好要订阅的时候，你可以使用 <code>newSubscription</code> 方法：</p>
<pre><code>$user = User::find(1);

$user-&gt;newSubscription('main', 'monthly')-&gt;create($creditCardToken);</code></pre>
<p><a name="handling-stripe-webhooks"></a></p>
<h2>处理 Stripe Webhooks</h2>
<p><a name="handling-failed-subscriptions"></a></p>
<h3>订购失败</h3>
<p>如果顾客的信用卡过期了呢？无需担心，Cashier 包含了 Webhook 控制器，可以帮你简单的取消顾客的订单。只要在路由注册控制器：</p>
<pre><code>Route::post(
    'stripe/webhook',
    '\Laravel\Cashier\Http\Controllers\WebhookController@handleWebhook'
);</code></pre>
<p>这样就完成了！失败的交易会经由控制器捕捉并进行处理。控制器在 Stripe 确认订购已经失败后 (通常在三次交易尝试失败后)，才会取消顾客的订单。别忘了：你必须设置 Stripe 控制设置里的 webhook URI。</p>
<p>由于 Stripe Webhooks 必须绕过 Laravel 的 <a href="routing.html#csrf-protection">CSRF 验证</a>，请确定在增加 URI 异常至你的 <code>VerifyCsrfToken</code> 中间件，或者在把路由设置于 <code>web</code> 路由组外：</p>
<pre><code>protected $except = [
    'stripe/*',
];</code></pre>
<p><a name="handling-other-webhooks"></a></p>
<h3>其它 Webhooks</h3>
<p>如果你想要处理额外的 Stripe Webhook 事件，只需要继承 Webhook 控制器。你的方法名称要对应到 Cashier 默认的名称，尤其是方法名称应该使用 <code>handle</code> 前缀，并使用「驼峰式」命名法，后面接着你想要处理的 Stripe webhook。例如，如果你想要处理 <code>invoice.payment_succeeded</code> webhook，你应该增加一个 <code>handleInvoicePaymentSucceeded</code> 方法到控制器。</p>
<pre><code>&lt;?php

namespace App\Http\Controllers;

use Laravel\Cashier\Http\Controllers\WebhookController as BaseController;

class WebhookController extends BaseController
{
    /**
     * 处理一个 stripe webhook。
     *
     * @param  array  $payload
     * @return Response
     */
    public function handleInvoicePaymentSucceeded($payload)
    {
        // 处理该事件
    }
}</code></pre>
<p><a name="handling-braintree-webhooks"></a></p>
<h2>处理 Braintree Webhooks</h2>
<p><a name="handling-braintree-failed-subscriptions"></a></p>
<h3>订购失败</h3>
<p>如果顾客的信用卡过期了呢？无需担心，Cashier 包含了 Webhook 控制器，可以帮你简单的取消顾客的订单。只要在路由注册控制器：</p>
<pre><code>Route::post(
    'braintree/webhook',
    '\Laravel\Cashier\Http\Controllers\WebhookController@handleWebhook'
);</code></pre>
<p>这样就完成了！失败的交易会经由控制器捕捉并进行处理。控制器在 Braintree 确认订购已经失败后 (通常在三次交易尝试失败后)，才会取消顾客的订单。别忘了：你必须设置 Stripe 控制设置里的 webhook URI。</p>
<p>由于 Braintree Webhooks 必须绕过 Laravel 的 <a href="routing.html#csrf-protection">CSRF 验证</a>，请确定在增加 URI 异常至你的 <code>VerifyCsrfToken</code> 中间件，或者在把路由设置于 <code>web</code> 路由组外：</p>
<pre><code>protected $except = [
    'braintree/*',
];</code></pre>
<p><a name="handling-braintree-other-webhooks"></a></p>
<h3>其他的 Webhooks</h3>
<p>如果你需要处理其他的 Braintree Webhook 事件，你可以直接扩展 Webhook 控制器。方法的命名规范是依照 Webhook 来命名的，在 Webhook 前面增加前缀，然后使用驼峰命名法。如：<code>dispute_opened</code> 接口，对应的方法名为 <code>handleDisputeOpened</code>：</p>
<pre><code>&lt;?php

namespace App\Http\Controllers;

use Braintree\WebhookNotification;
use Laravel\Cashier\Http\Controllers\WebhookController as BaseController;

class WebhookController extends BaseController
{
    /**
     * 处理一个 Braintree webhook
     *
     * @param  WebhookNotification  $webhook
     * @return Response
     */
    public function handleDisputeOpened(WebhookNotification $notification)
    {
        // 处理事件的逻辑
    }
}</code></pre>
<p><a name="single-charges"></a></p>
<h2>一次性收费</h2>
<h3>简单收费</h3>
<blockquote>
<p><strong>注意：</strong> 当你使用 Stripe 的时候，<code>charge</code> 会接受当前应用使用的货币最小分母，而 Braintree 使用的是完整的美元单位。</p>
</blockquote>
<p>如果你想对一个已订购客户的信用卡进行「一次性」收费，你可以对一个交易模型实例使用 <code>charge</code> 方法。<code>charge</code> 方法接受你想收取 <strong>应用程序使用货币的最低单位</strong> 的金额。所以，举例来说，下方的例子将会对用户的信用卡收取 100 美分，或是 1 美元：</p>
<pre><code>// Stripe 收取的是以美分为单位
$user-&gt;charge(100);

// Braintree 收取的是以美元为单位
$user-&gt;charge(1);</code></pre>
<p><code>charge</code> 方法接受一个数组作为第二个参数，你可以传递任何你希望的选项至底层的 Stripe 付费创建器：</p>
<pre><code>$user-&gt;charge(100, [
    'custom_option' =&gt; $value,
]);</code></pre>
<p>当收费失败时 <code>charge</code> 方法会抛出异常。完整的 Stripe / Braintree <code>response</code> 响应会被返回：</p>
<pre><code>try {
    $response = $user-&gt;charge(100);
} catch (Exception $e) {
    //
}</code></pre>
<h3>收费并生成发票</h3>
<p>你可以使用 <code>invoiceFor</code> 来一次性收费并生成发票，例如 <code>一次性收费</code> 是 $5.00。</p>
<pre><code>// Stripe 收取的是以美分为单位
$user-&gt;invoiceFor('One Time Fee', 500);

// Braintree 收取的是以美元为单位
$user-&gt;invoiceFor('One Time Fee', 5);</code></pre>
<p>此次对用户的信用卡收费会在即刻发生。方法 <code>invoiceFor</code> 还可以接受第三个参数，此参数以数字形式出现，你可以使用此参数在收费创建时給 Stripe / Braintree 传送信息：</p>
<pre><code>$user-&gt;invoiceFor('One Time Fee', 500, [
    'custom-option' =&gt; $value,
]);</code></pre>
<p><a name="invoices"></a></p>
<h2>发票</h2>
<p>你可以很简单的通过 <code>invoices</code> 方法获取交易模型的发票数据数组：</p>
<pre><code>$invoices = $user-&gt;invoices();</code></pre>
<p>当列出发票给客户时，你可以使用发票的辅助函数来显示发票的相关信息。举例来说，你可能希望在表格中列出每个发票的信息，让用户可以简单对其中一个进行下载：</p>
<pre><code>&lt;table&gt;
    @foreach ($invoices as $invoice)
        &lt;tr&gt;
            &lt;td&gt;{{ $invoice-&gt;date()-&gt;toFormattedDateString() }}&lt;/td&gt;
            &lt;td&gt;{{ $invoice-&gt;total() }}&lt;/td&gt;
            &lt;td&gt;&lt;a href="/user/invoice/{{ $invoice-&gt;id }}"&gt;Download&lt;/a&gt;&lt;/td&gt;
        &lt;/tr&gt;
    @endforeach
&lt;/table&gt;</code></pre>
<p><a name="generating-invoice-pdfs"></a></p>
<h4>生成发票的 PDF</h4>
<p>在生成 PDF 的时候，你需要安装 <code>dompdf</code> 扩展包：</p>
<pre><code>composer require dompdf/dompdf</code></pre>
<p>在路由或是控制器中，使用 <code>downloadInvoice</code> 方法可以触发发票的 PDF 下载动作，此方法会自动生成正确的 HTTP 响应并发送下载动作至浏览器：</p>
<pre><code>Route::get('user/invoice/{invoice}', function ($invoiceId) {
    return Auth::user()-&gt;downloadInvoice($invoiceId, [
        'vendor'  =&gt; 'Your Company',
        'product' =&gt; 'Your Product',
    ]);
});</code></pre>
		</div>

		<div class="main-footer" style="border-top:1px dashed rgba(0, 0, 0, 0.1);padding-top: 30px;margin-top:30px;margin-bottom: 20px;">
			<div class="prev-next-wrap clearfix">

									<a class="btn btn-primary pull-left btn-inverted" href="artisan.html"><i class="fa fa-arrow-left"></i> Artisan 命令行</a>
				
			    &nbsp;
								    <a class="btn btn-primary pull-right btn-inverted" href="cache.html">缓存 <i class="fa fa-arrow-right"></i></a>
							</div>
		</div>

	</article>
</div>

	<footer class="main">
		<ul>
			<li class="nav-docs"><a href="../5.4.html">文档</a></li>
<li ><a href="https://news.laravel-china.org/" class="no-pjax">Laravel 资讯</a></li>
<li class="dropdown"><a href="https://laravel-china.org/">Laravel China 社区</a></li>
<li class="nav-forge"><a href="https://laravel-china.org/categories/1">酷工作</a></li>
<li class="nav-docs"><a href="http://lumen.laravel-china.org">Lumen</a></li>
<li class="nav-forge"><a href="https://cs.laravel-china.org/">速查表</a></li>
<li class="nav-forge"><a href="https://laravel-china.org/laravel-tutorial/5.1/about">《Laravel 入门教程》</a></li>
		</ul>
		<p>Laravel is a trademark of Taylor Otwell. Copyright &copy; Taylor Otwell.</p>
		<p class="less-significant">
            <a href="http://jackmcdade.com">
                Designed by<br>
                <svg version="1.1"
	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeS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,1.9c0,0.2,0,0.3,0,0.5c0,0.2,0,0.3,0,0.5
		c0.6-0.2,1.2-0.3,1.9-0.4c0.6-0.1,1.2-0.3,1.9-0.4c0,0.1,0.1,0.2,0.1,0.3c0,0.1,0,0.3,0,0.4c0,0.2-0.1,0.3-0.1,0.4
		c-0.1,0.1-0.1,0.2-0.1,0.3c-0.1,0.1-0.2,0.1-0.4,0.2c-0.1,0-0.3,0.1-0.4,0.1c-0.5,0.1-0.9,0.2-1.4,0.3c-0.5,0.1-0.9,0.1-1.4,0.2
		c0,1-0.1,2-0.2,2.9c-0.1,1-0.1,1.9-0.2,2.9c0.8,0.2,1.5,0.3,2,0.1c0.6-0.2,1.2-0.5,1.9-1c0.2-0.1,0.2-0.3,0.2-0.5
		c0-0.2,0-0.5,0-0.7c0-0.2,0.1-0.5,0.2-0.6c0.1-0.2,0.3-0.3,0.7-0.4c0.4,0,0.6,0.1,0.7,0.4c0.1,0.3,0.2,0.7,0.2,1.1
		c0,0.5,0,0.9-0.1,1.4c-0.1,0.5-0.1,0.9,0,1.2c-0.5,0-1,0-1.4,0c-0.4,0-0.8,0-1.2,0.1c-0.4,0-0.8,0-1.2,0.1c-0.4,0-0.9,0-1.3,0
		c-0.9,0-1.7,0-2.5,0.1c-0.7,0.1-1.6,0.1-2.4,0.1c-0.2-0.2-0.2-0.4-0.2-0.7c0-0.2,0.1-0.5,0.3-0.6c0.2-0.2,0.3-0.3,0.6-0.3
		c0.2-0.1,0.5,0,0.7,0.1c0.1-2.1,0.2-4.3,0.1-6.5C116.3,5.5,116.3,3.4,116.5,1.2z"/>
</g>
</svg>

            </a>
        </p>
	</footer>

	<script>
		var algolia_app_id      = 'FU55RWGNDN';
		var algolia_search_key  = 'c41c5de31ca55044dbb0bde815d35121';
				var version             = '5.2';
			</script>

	<script id="search_suggestion_template" type="text/template">
	<div class="autocomplete-wrapper">
		{{#_highlightResult.h1}}
		<div class="h1">
			{{{ _highlightResult.h1.value }}}
		</div>
		{{/_highlightResult.h1}}

		<div class="sub-section">
			{{#_highlightResult.h2}}
			<div class="h2">
				<span class="hash">#</span> {{{ _highlightResult.h2.value }}}
			</div>
			{{/_highlightResult.h2}}

			{{#_highlightResult.h3}}
			<div class="h3">
				> {{{ _highlightResult.h3.value }}}
			</div>
			{{/_highlightResult.h3}}

			{{#_highlightResult.h4}}
			<div class="h4">
				> {{{ _highlightResult.h4.value }}}
			</div>
			{{/_highlightResult.h4}}
		</div>

		{{#_highlightResult.content}}
		<div class="content">
			{{{ _highlightResult.content.value }}}
		</div>
		{{/_highlightResult.content}}
	</div>
</script>

<script id="search_empty_template" type="text/template">
	<div class="autocomplete-wrapper empty">
		<div class="h2">We didn't find any result for "{{query}}". Sorry!</div>
	</div>
</script>

<script id="search_footer_template" type="text/template">
	<div class="footer">
		<a target="_blank" href="https://www.algolia.com/referrals/5a08e6a4/join">
			<img width="50" src="/docs/assets/img/algolia-logo.png">
			<div class="powered">powered by</div>
			<div style="clear: both"></div>
		</a>
	</div>
</script>

	<script src="../../build/assets/js/laravel-db513c8174.js"></script>
	<script src="../../assets/js/viewport-units-buggyfill.js"></script>

	<script>window.viewportUnitsBuggyfill.init();</script>
    <script>
          ga('create', 'UA-53903425-7', 'auto');
          ga('send', 'pageview');
    </script>
</body>
</html>
